翻訳と辞書
Words near each other
・ JD Sports
・ JD Squared
・ JD Wiker
・ JD Wilkes & The Dirt Daubers
・ JD-03 pipe
・ JD.com
・ JD/MBA
・ JD5037
・ JDA
・ JDA Dijon Basket
・ JDA Software
・ Jdaideh
・ JDate
・ Jdaydeh
・ JDB Group
JDBC driver
・ JDBCFacade
・ Jdbgmgr.exe virus hoax
・ JDBUG
・ JDC
・ JDC International Centre for Community Development
・ JDC Records
・ JDC Welfare Organization
・ JDC West
・ JDE
・ Jdeidat al-Wadi
・ Jdeidat Artouz
・ Jdeidat Yabous
・ Jdeide
・ Jdeideh


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

JDBC driver : ウィキペディア英語版
JDBC driver

A JDBC driver is a software component enabling a Java application to interact with a database.〔("Java SE Technologies - Database" )〕 JDBC drivers are analogous to ODBC drivers, ADO.NET data providers, and OLE DB providers.
To connect with individual databases, JDBC (the Java Database Connectivity API) requires drivers for each database. The JDBC driver gives out the connection to the database and implements the protocol for transferring the query and result between client and database.
JDBC technology drivers fit into one of four categories.〔(Sun JDBC Overview )〕
# JDBC-ODBC bridge
# Native-API driver
# Network-Protocol driver (Middleware driver)
# Database-Protocol driver (Pure Java driver)
==Type 1 driver – JDBC-ODBC bridge==

The JDBC type 1 driver, also known as the JDBC-ODBC bridge, is a database driver implementation that employs the ODBC driver to connect to the database. The driver converts JDBC method calls into ODBC function calls.
The driver is platform-dependent as it makes use of ODBC which in turn depends on native libraries of the underlying operating system the JVM is running upon. Also, use of this driver leads to other installation dependencies; for example, ODBC must be installed on the computer having the driver and the database must support an ODBC driver. The use of this driver is discouraged if the alternative of a pure-Java driver is available. The other implication is that any application using a type 1 driver is non-portable given the binding between the driver and platform. This technology isn't suitable for a high-transaction environment. Type 1 drivers also don't support the complete Java command set and are limited by the functionality of the ODBC driver.
Sun provided a JDBC-ODBC Bridge driver: sun.jdbc.odbc.JdbcOdbcDriver. This driver is native code and not Java, and is closed source. Oracle's JDBC-ODBC Bridge was removed in Java 8 (other vendors' are available).〔http://www.easysoft.com/blog/java-8.html〕
If a driver has been written so that loading it causes an instance to be created and also calls DriverManager.registerDriver with that instance as the parameter (as it should do), then it is in the DriverManager's list of drivers and available for creating a connection.
It may sometimes be the case that more than one JDBC driver is capable of connecting to a given URL. For example, when connecting to a given remote database, it might be possible to use a JDBC-ODBC bridge driver, a JDBC-to-generic-network-protocol driver, or a driver supplied by the database vendor. In such cases, the order in which the drivers are tested is significant because the DriverManager will use the first driver it finds that can successfully connect to the given URL.
First the DriverManager tries to use each driver in the order it was registered. (The drivers listed in jdbc.drivers are always registered first.) It will skip any drivers that are untrusted code unless they have been loaded from the same source as the code that is trying to open the connection.
It tests the drivers by calling the method Driver.connect on each one in turn, passing them the URL that the user originally passed to the method DriverManager.getConnection. The first driver that recognizes the URL makes the connection.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「JDBC driver」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.